package project1;

import java.awt.Dimension;

import java.awt.Rectangle;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class Frame1
  extends JFrame
{
  private JButton jButton1 = new JButton();
  private JPanel jPanel1 = new JPanel();

  public Frame1()
  {
    try
    {
      jbInit();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }

  private void jbInit()
    throws Exception
  {
    this.getContentPane().setLayout( null );
    this.setSize( new Dimension(400, 300) );
    jButton1.setText("jButton1");
    jButton1.setBounds(new Rectangle(150, 5, 73, 22));
    jButton1.addActionListener(new ActionListener()
      {
        public void actionPerformed(ActionEvent e)
        {
          jButton1_actionPerformed(e);
        }
      });
    jPanel1.setBounds(new Rectangle(70, 45, 250, 195));
    this.getContentPane().add(jPanel1, null);
    this.getContentPane().add(jButton1, null);
  }

  private void jButton1_actionPerformed(ActionEvent e)
  {
    System.out.println(this.getExtendedState());
  }
}
